<body>
    <form action="/test/checkCaptcha" method="post">
    <input type="text" name="captcha" placeholder="验证码"><br>
    <img src="{{captcha_src()}}"><br>
    {{csrf_field()}}
    <input type="submit" value="提交">
    </form>
    @if(count($errors)>0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
            <li>{{$error}}</li>
            @endforeach
        </ul>
    </div>
    @endif
</body>